{"version":3,"file":"scripts_for_form2.map.js","names":["window","UCForm","repo","formId","this","form","BX","entities","Map","xmls","initialize","startCheckWriting","bind","id","currentEntity","onSubmitSuccess","onSubmitFailed","prototype","bindWindowEvents","bindPrivateEvents","__bindLHEEvents","handler","bindLHEEvents","addCustomEvent","getLHE","onCustomEvent","windowEvents","OnImageDataUriHandle","showWait","OnImageDataUriCaughtUploaded","closeWait","OnImageDataUriCaughtFailed","ii","hasOwnProperty","unbindWindowEvents","removeCustomEvent","privateEvents","onQuote","onReply","onEdit","exec","removeAllCustomEvents","oEditor","SaveContent","eventNode","getLHEEventNode","removeClass","document","documentElement","top","node","getPlaceholder","messageId","hide","stopCheckWriting","clear","browser","IsIOS","IsMobile","addClass","submit","cancel","LHEPostForm","getHandlerByFormId","handlerEventNode","bindEntity","entity","has","getId","delete","set","getXmlId","onInitEditorFrame","callback","author","text","safeEdit","loaded","isFormOccupied","quote","origRes","util","htmlspecialchars","toolbar","controls","Quote","DoNothing","action","Exec","haveWrittenText","gender","message","GetViewMode","replace","SetBxTag","tag","userId","userName","name","bbCode","actions","setExternalSelectionFromRange","extSel","getExternalSelection","tmpExtSel","create","html","emojiContainer","querySelector","removeChild","innerHTML","type","isNotEmptyString","setExternalSelection","isReinitAction","parseInt","show","insertMention","data","act","setCurrentEntity","showError","showNote","nullCurrentEntity","isFormChanged","confirm","editorIsLoaded","IsContentChanged","user","BxInsertMention","item","entityId","formID","editorId","oEditorId","bNeedComa","insertHtml","_checkWriteTimeout","__content_length","content","GetContent","time","length","sent","setTimeout","clearTimeout","operationId","getRandomString","quick","style","display","body","appendChild","res","clearNotification","filesForm","findChild","className","cleanNode","placeholderNode","Focus","isElementCompletelyVisibleOnScreen","scrollIntoView","behavior","block","inline","Dom","getPosition","y","scrollTo","scrollX","scrollY","offsetHeight","element","coords","LazyLoad","getElementCoords","windowTop","pageYOffset","scrollTop","windowBottom","clientHeight","bottom","true_data","ENTITY_XML_ID","OnUCFormResponseData","busy","isPlainObject","isArray","map","error","join","post_data","convertFormToArray","ID","ajax","runComponentAction","componentName","mode","signedParameters","params","then","actionUrl","remove_url_param","add_url_param","b24statAction","method","url","dataType","onsuccess","onfailure","nodes","findChildren","tagName","pop","remove","firstChild","insertBefore","attrs","class","el","defer","disabled","bindFormToEntity","i","_data","n","elements","toLowerCase","push","value","checked","j","options","selected","current","p","indexOf","substring","rest","pp","captchaIMAGE","captchaHIDDEN","attr","captchaINPUT","captchaDIV","getCaptcha","result","src"],"sources":["scripts_for_form2.js"],"mappings":"CAAC,WAEA,KAAMA,OAAOC,OACZ,OAED,IAAIC,EAAO,CAAC,EACZF,OAAOC,OAAS,SAASE,GAExBC,KAAKD,OAASA,EACdC,KAAKC,KAAOC,GAAGF,KAAKD,QACpBC,KAAKG,SAAW,IAAIC,IACpBJ,KAAKK,KAAO,IAAID,IAEhB,GAAIL,IAAW,GACf,CAEA,KAEA,CACCC,KAAKM,YACN,CACAN,KAAKO,kBAAoBP,KAAKO,kBAAkBC,KAAKR,MACrDA,KAAKS,GAAK,KACVT,KAAKU,cAAgB,KACrBV,KAAKW,gBAAkBX,KAAKW,gBAAgBH,KAAKR,MACjDA,KAAKY,eAAiBZ,KAAKY,eAAeJ,KAAKR,KAChD,EACAJ,OAAOC,OAAOgB,UAAY,CACzBP,WAAa,WACZN,KAAKc,mBACLd,KAAKe,oBAELf,KAAKgB,gBAAkB,SAAUC,EAASlB,GACzC,GAAIA,IAAWC,KAAKD,OAAQ,CAC3BC,KAAKiB,QAAUA,EACfjB,KAAKkB,eACN,CACA,EAAEV,KAAKR,MACRE,GAAGiB,eAAevB,OAAQ,gBAAiBI,KAAKgB,iBAChD,GAAIhB,KAAKoB,SACRpB,KAAKkB,gBAENhB,GAAGmB,cAAcrB,KAAKC,KAAM,eAAgB,CAACD,MAC9C,EACAc,iBAAmB,WAClBd,KAAKsB,aAAe,CAEnBC,qBAAuBvB,KAAKwB,SAAShB,KAAKR,MAC1CyB,6BAA+BzB,KAAK0B,UAAUlB,KAAK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